﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Management.Core.Breaked
{
    public class Breaked
    {
        [Key]
        public int BreakedID { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Required(ErrorMessage = "必填")]
        [Display(Name = "名称")]
        public string Name { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        [Required(ErrorMessage = "必填")]
        [Display(Name = "是否禁用")]
        public int IsDisabled { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Required(ErrorMessage = "必填")]
        [Display(Name = "创建时间")]
        public DateTime Created_at { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Required(ErrorMessage = "必填")]
        [Display(Name = "更新时间")]
        public DateTime Updated_at { get; set; }
    }
}
